package today.rocky.boot.shiro.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import today.rocky.boot.shiro.entity.User;
import today.rocky.boot.shiro.mapper.UserMapper;
import today.rocky.boot.shiro.service.UserService;

/**
 * @author Rocky
 * @version 1.0
 * @date 2020/4/14 14:01
 */
@Service
public class UserServiceImpl implements UserService {

	@Autowired
	private UserMapper userMapper;

	@Override
	public User findByName(String name) {
		return userMapper.findByName(name);
	}

	@Override
	public User findById(Integer id) {
		return userMapper.findById(id);
	}

}
